package com.beibojd.service;

import com.beibojd.pojo.Order;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-24 09:34:00
 */
public interface OrderService {
    //查询所有订单
    public List<Order> selectAll();

    //根据订单id查询订单
    public List<Order> selectByOrderId(Integer id);
    //根据不同条件查询订单
    public List<Order> selectByExample(Order order);
    //创建样例，用于条件查询
    public Example createExampleOrder(Order order);

    List<Order> addOrder(String customerName, String transport);
}
